<template>
  <div id="app">
    <router-view />
    <!-- <About :b="s"></About> -->
    <!-- <button @click="()=>s.a--">sa</button> -->
  </div>
</template>
<script>
// import About from "./views/About.vue";
export default {
  // components: { About },
  props: {
    b: {
      type: Object,
      default: () => {
        return { a: 1 };
      },
    },
  },
  data() {
    return {
      w: this.b,
      s: { a: 1 },
      active: 0,
    };
  },
  watch: {
    b: {
      handler: function () {},
      deep: true,
      immediate: true,
    },
  },
  methods: {
    onClickLeft() {
      this.$toast("返回");
      this.$refs;
    },
    onClickRight() {
      this.$toast("按钮");
    },
  },
  computed: {
    a() {
      return this.a;
    },
  },
};
</script>
<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
}
/* @font-face {
  font-family: "iconfont" !important;
  src: url("./assets/icon/iconfont.eot");
  src: url("./assets/icon/iconfont.eot?#iefix") format("embedded-opentype"),
    url("./assets/icon/iconfont.woff") format("woff"),
    url("./assets/icon/iconfont.ttf") format("truetype"),
    url("./assets/icon/iconfont.svg#iconfont") format("svg");
} */
#nav {
  padding: 30px;
}

#nav a {
  font-weight: bold;
  color: #2c3e50;
}

#nav a.router-link-exact-active {
  color: #42b983;
}
</style>
